<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" data-bind="text: $root.systemTitle"></div>
        <ul data-bind="foreach: $root.topMenu, css: {'layui-nav layui-layout-left': true}">
            <li class="layui-nav-item">
                <a href="" data-bind="text: name, click: $root.clickTopMenu"></a>
                <!-- ko if: children.length > 0 -->
                <dl class="layui-nav-child" data-bind="foreach: children">
                    <dd><a href="" data-bind="text:name, click: $root.clickTopMenu.bind($data, $parent, event)"></a>
                    </dd>
                </dl>
                <!-- /ko -->
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="avatar.jpg" class="layui-nav-img">
                    <span>业务人员</span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" data-bind="click:clickExitBtn"><a href="">退出</a></li>
        </ul>
    </div>

    <div style="display: none;" class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">所有商品</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">列表一</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="javascript:;">列表三</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">解决方案</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">列表一</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">云市场</a></li>
                <li class="layui-nav-item"><a href="">发布商品</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body" style="left: 0; bottom: 24px;" data-bind="module: $root.currentTopMenu().url"></div>

    <div class="layui-footer" style="left: 0; height: 24px; line-height: 24px; color: #9e9e9e;"
         data-bind="text: $root.footer"></div>
</div>